﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiQuan.IotDevice.Entity
{
    /// <summary>
    /// 样品信息
    /// </summary>
    public class SampleInfoEntity : BasicIotDeviceEntity
    {
        /// <summary>
        /// 样品编号
        /// </summary>
        [Display(Name = "样品编号"), MaxLength(50)]
        public string Code { get; set; }
        /// <summary>
        /// 样品名称
        /// </summary>
        [Display(Name = "样品名称"), MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 上级产品
        /// </summary>
        [Display(Name = "上级产品"), MaxLength(50)]
        public string ParentId { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        [Display(Name = "备注说明")]
        public string Remark { get; set; }

        /// <summary>
        /// 所属客户
        /// </summary>
        [Display(Name = "所属客户"), MaxLength(50)]
        public string RefCorpId { get; set; }
        /// <summary>
        /// 所属客户
        /// </summary>
        [Display(Name = "所属客户"), MaxLength(100)]
        public string CorpName { get; set; }

        #region 检测情况
        /// <summary>
        /// 检测批次
        /// </summary>
        [Display(Name = "检测批次")]
        public int? DetectionCount { get; set; }

        /// <summary>
        /// 合格批次
        /// </summary>
        [Display(Name = "合格批次")]
        public int? QualifiedCount { get; set; }

        /// <summary>
        /// 合格率
        /// </summary>
        [Display(Name = "检测批次")]
        public decimal? QualifiedRate { get; set; }

        /// <summary>
        /// 不合格批次
        /// </summary>
        [Display(Name = "不合格批次")]
        public int? UnqualifiedCount { get; set; }

        /// <summary>
        /// 不合格率
        /// </summary>
        [Display(Name = "不合格率")]
        public decimal? UnqualifiedRate { get; set; }
        #endregion
    }
}
